package cn.smile.dao;

import cn.smile.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: MaoSuyu
 * @User：John
 * @Date: 2019/7/1
 * @Time: 21:42
 * @Description: No Description
 */
@Repository
public interface UserDaoMapper {

    /**
     * 存在多少个相同的账户
     * @param userName
     * @return
     */
    @Select("select * from user where userName=#{userName}")
    User findUser(User userName);

}
